<script>
	import {
		fontUtil
	} from 'uview-plus';
import { date } from 'uview-plus/libs/function/test';
	export default {
		onLaunch: function() {
			// console.warn('当前组件仅支持 uni_modules 目录结构 ，请升级 HBuilderX 到 3.1.0 版本以上！')
			console.log('App Launch')
			var tmpdate=new Date();
			console.log(tmpdate.getTime())
			var tmpurl='/static/config.json?v='+tmpdate.getTime()
			uni.request({
				url: tmpurl,
				success: (res) => {
					// 挂载到全局
					uni.$config = res.data;
					//, uni.$config
					console.log('配置加载成功:');
				}
			});
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
	fontUtil.loadFont();
</script>
<style lang="scss">
	@import "@/node_modules/uview-plus/index.scss";
	/*每个页面公共css */
	@import '@/uni_modules/uni-scss/index.scss';
	/* #ifndef APP-NVUE */
	@import '@/static/customicons.css';

	// 设置整个项目的背景色
	page {
		background-color: #f5f5f5;
	}

	/* #endif */
	.example-info {
		font-size: 14px;
		color: #333;
		padding: 10px;
	}
</style>